package com.slkj.shilixiaoyuanapp.entity;

/**
 * Created  on 2018-07-18
 *
 * @author 唐开阔
 * @describe 通知历史记录列表
 */
public class ToolNoticeHistoryListEntity {


    /**
     * intime : 2018-08-22
     * read : 0/0
     * isDelete : 0
     * id : 51
     * body : 内容
     * title : 通知
     * type : 1
     * url : http://47.106.8.136:8082/school/demo/index.html#/Notice/1
     */

    private String intime;
    private String read;
    private int isDelete;
    private int id;
    private String body;
    private String title;
    private int type;
    private String url;
    //是否阅读完毕 1阅读完毕
    private int isReadOver;
    //是否可以提醒
    private int urge;
    private String btName;
    private String shows;

    public String getShows() {
        return shows;
    }

    public void setShows(String shows) {
        this.shows = shows;
    }

    public int getUrge() {
        return urge;
    }

    public boolean isUrge() {
        return urge == 1;
    }

    public void setUrge(int urge) {
        this.urge = urge;
    }

    public String getBtName() {
        return btName;
    }

    public void setBtName(String btName) {
        this.btName = btName;
    }

    public String getIntime() {
        return intime;
    }

    public void setIntime(String intime) {
        this.intime = intime;
    }

    public int getIsReadOver() {
        return isReadOver;
    }

    public boolean isReadOver() {
        return isReadOver == 1;
    }
    public void setIsReadOver(int isReadOver) {
        this.isReadOver = isReadOver;
    }

    public String getRead() {
        return read;
    }

    public void setRead(String read) {
        this.read = read;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    /**
     * 是否能提醒
     * @return
     */
    public boolean isCanTx(){
        return  urge!=1 && isReadOver != 1;
    }
}
